package com.yxlgateway.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yxlcommon.common.pojo.Demands;
import com.yxlcommon.common.pojo.RespBean;
import com.yxlcommon.common.vo.DemandsVo;

import java.util.List;

public interface DemandsService extends IService<Demands> {

    List<Demands> listDemands();

    RespBean addDemands(Demands demands);

    RespBean<List<Demands>> selectDemandsByUsername(Demands demands);

    RespBean<List<DemandsVo>> selectDemandsByUserId(DemandsVo demands);

    RespBean<DemandsVo> selectDemandDetailById(Integer demandId);

    RespBean<List<DemandsVo>> getDemandByKeyword(String keyword);

    RespBean<List<DemandsVo>> selectDemandByCategory(Demands demands);

    RespBean<IPage> searchDemandsPage(Integer currentPage, Integer size, Demands demands);

    RespBean<Integer> updateDemandById(Demands demands);

    RespBean<Integer> deleteDemandById(Demands demands);
}
